package com.example.springbootexamples.controller;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class NacosController {



    @NacosValue(value = "${useLocalCache:aaa}", autoRefreshed = true)
    private String aa;


    @RequestMapping("nc")
    public String nc(String a){
        System.out.println(aa);


        return aa+"";
    }


}
